package com.woniuxy.Controller;

import com.woniuxy.entity.RbacManagerPerm;
import com.woniuxy.service.RbacManagerPermService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * (RbacManagerPerm)表控制层
 *
 * @author mayuhang
 * @since 2021-04-25 23:04:54
 */
@RestController
@RequestMapping("rbacManagerPerm")
public class RbacManagerPermController {
    /**
     * 服务对象
     */
    @Resource
    private RbacManagerPermService rbacManagerPermService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public RbacManagerPerm selectOne(Integer id) {
        return this.rbacManagerPermService.queryById(id);
    }

}
